(function(){Nokia.extend(Nokia.device,{setRightSoftkeyLabel:function(a,b){if(window.menu&&window.menu.setRightSoftkeyLabel){window.menu.setRightSoftkeyLabel(a,b)}},setLeftSoftkeyLabel:function(a,b){if(window.menu&&window.menu.setLeftSoftkeyLabel){window.menu.setLeftSoftkeyLabel(a,b)}},vibrate:function(c,b){if(document&&document.embeds&&document.embeds[0]){var a=document.embeds[0];c=c||50;c=(c>=100)?100:50;b=b||25;if(a&&a.startvibra){a.startvibra(b,c)}}},getDeviceImages:function(f){var a=this;try{if(window.device){var c=device.getServiceObject("Service.MediaManagement","IDataSource");var d={Type:"FileInfo",Filter:{FileType:"Image"},Sort:{Key:"FileSize"}};c.IDataSource.GetList(d,function(l,k,g){var j=g.ReturnValue,h=0,e=[];j.reset();while((item=j.getNext())!=undefined){e.push(item)}if(f){f(e)}})}else{f.apply(a,[[]])}}catch(b){f.apply(a,[[]])}}})})();